﻿@model Core_Ticket
@{
    ViewBag.ParentUrl = "/Ticket/Index";
    ViewBag.Title = "单证编辑";
}
@section header{
    <style>
        .profile-info-name {
            width: auto;
        }
    </style>
}
@section breadcrumb
{
    <ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <a href="/">首页</a>
        </li>
        <li class="active">@ViewBag.Title</li>
    </ul><!-- .breadcrumb -->
}

<div class="row">
    <div class="col-xs-12">

        <div class="widget-box">
            <div class="widget-header widget-header-flat">
                <h4 class="smaller">
                    <i class="icon-search"></i>
                    @ViewBag.Title
                </h4>
            </div>

            <div class="widget-body">
                <div class="widget-main">

                    <form class="form-horizontal" action="/Ticket/Edit" method="POST">

                        @Html.HiddenFor(o => o.T_Id)
                        @Html.HiddenFor(o => o.T_CreateTime)
                        @Html.HiddenFor(o => o.T_Flag)
                        <div class="profile-user-info profile-user-info-striped">
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 所属产品： </div>

                                <div class="profile-info-value">
                                    @Html.DropDownList("Product", (IEnumerable<SelectListItem>)TempData["ProductList"], new { @class = "col-xs-12 col-sm-3", style = "" })
                                </div>
                            </div>

                            <div class="profile-info-row">
                                <div class="profile-info-name"> 单证名称： </div>

                                <div class="profile-info-value">
                                    @Html.TextBoxFor(o => o.T_Name, new { @class = "input-large", placeholder = "单证名称" })
                                </div>
                            </div>

                            <div class="profile-info-row">
                                <div class="profile-info-name"> 单证起始号： </div>

                                <div class="profile-info-value">
                                    @Html.TextBoxFor(o => o.T_SNo, new { @class = "input-large", type = "number", placeholder = "单证起始号" })
                                </div>
                            </div>

                            <div class="profile-info-row">
                                <div class="profile-info-name"> 单证结束号： </div>

                                <div class="profile-info-value">
                                    @Html.TextBoxFor(o => o.T_ENo, new { @class = "input-large", type = "number", placeholder = "单证结束号" })
                                </div>
                            </div>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 当前使用号：	 </div>

                                <div class="profile-info-value">
                                    @Html.TextBoxFor(o => o.T_CurrentNo, new { @class = "input-large", type = "number", placeholder = "当前使用号" })
                                </div>
                            </div>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 次数：	 </div>

                                <div class="profile-info-value">
                                    @Html.TextBoxFor(o => o.T_Count, new { @class = "input-large", type = "number", placeholder = "次数" })
                                </div>
                            </div>
                            <div class="profile-info-row">
                                <div class="profile-info-name"> 剩余次数：	 </div>

                                <div class="profile-info-value">
                                    @Html.TextBoxFor(o => o.T_RemainCount, new { @class = "input-large", type = "number", placeholder = "剩余次数" })
                                </div>
                            </div>

                        </div>

                        <div class="space-4"></div>

                        <div class="clearfix form-actions">
                            <div class="col-md-offset-3 col-md-9">
                                <button class="btn btn-info" type="submit" id="btnSubmit">
                                    <i class="ace-icon fa fa-check bigger-110"></i>
                                    修改并保存
                                </button>

                                &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="ace-icon fa fa-undo bigger-110"></i>
                                    重置
                                </button>
                            </div>
                        </div>
                        <div class="hr hr-24"></div>
                    </form>
                </div>
            </div>
        </div>

    </div>
</div>